﻿<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <script type="text/javascript" src="https://www.funbling.net/Public/static/jquery-2.0.3.min.js"></script>
    <title></title>
    <style>
        * {
            margin: 0;
            padding: 0;
            width: 99.99%;
        }

        .header {
            width: 100%;
            height: 1rem;
            line-height: 1rem;
            text-align: center;
            position: relative;
            border-bottom: 1px solid #f6f6f6;
        }

        .header .back {
            width: 0.2rem;
            height: 0.38rem;
            position: absolute;
            top: 0.31rem;
            left: 0.25rem;
        }

        .code {
            width: 90%;
            padding: 0 5%;
        }

        .code_content {
            margin: 0.3rem 0;
        }

        .code_content p {
            color: #333;
            line-height: 0.5rem;
        }

        .code_bt {
            width: 10%;
            float: left;
            font-size: 0.3rem;
            line-height: 0.5rem;
        }

        .code_bt1 {
            float: left;
            width: 90%;
            font-size: 0.3rem;
        }

        .code_bt span {
            color: #FF7C35;
        }

        .descript {
            font-size: 0.28rem;
            width: 90%;
            margin-left: 10%;
        }
    </style>
    <script>
        (function (designWidth, maxWidth) {
            var doc = document,
                win = window,
                docEl = doc.documentElement,
                remStyle = document.createElement("style"),
                tid;
            function refreshRem() {
                var width = docEl.getBoundingClientRect().width;
                maxWidth = maxWidth || 540;
                width > maxWidth && (width = maxWidth);
                var rem = width * 100 / designWidth;
                remStyle.innerHTML = 'html{font-size:' + rem + 'px;}';
            }
            if (docEl.firstElementChild) {
                docEl.firstElementChild.appendChild(remStyle);
            } else {
                var wrap = doc.createElement("div");
                wrap.appendChild(remStyle);
                doc.write(wrap.innerHTML);
                wrap = null;
            }
            refreshRem();
            win.addEventListener("resize", function () {
                clearTimeout(tid)
                tid = setTimeout(refreshRem, 300);
            }, false);
            win.addEventListener("pageshow", function (e) {
                if (e.persisted) {
                    clearTimeout(tid);
                    tid = setTimeout(refreshRem, 300);
                }
            }, false);
            if (doc.readyState === "complete") {
                doc.body.style.fontSize = "16px";
            } else {
                doc.addEventListener("DOMContentLoaded", function (e) {
                    doc.body.style.fontSize = "16px";
                }, false);
            }
        })(750, 750);
    </script>
</head>

<body>
    <header class="header">
        <img class="back" src="images/back.png" alt="">
        <p class="title">Bling币</p>
    </header>
    <!-- 积分规则 -->
    <div class="code">
        <!-- <div class="code_content">
                <div class="code_bt"><span>Q1</span>：</div>
                <p class="code_bt1">什么是Bling币？</p>
                <div style="clear:both"></div>
                <p class="descript">a.Bling币是房比邻用户在房比邻产品中通过参与活动、完成任务等行为获取的奖励。</p>
            </div> -->
    </div>

    <script>
        $.ajax({
            url: 'http://192.168.1.44/shop/Shop/blingDesc',
            type: "get",
            data: {},
            success: function (data) {
                var datas = JSON.parse(data);
                console.log(datas);
                var html = '';
                $.each(datas.data.list, function (i, e) {
                    var i = i + 1
                    html += '<div class="code_content">'
                        + '<div class="code_bt">'
                        + '<span>' + "Q" + i + '</span>：'
                        + '</div>'
                        + '<p class="code_bt1">' + e.title + '</p>'
                        + '<div style="clear:both"></div>'
                        + '<p class="descript">' + e.content + '</p>'
                        + '</div>'
                })
                $('.code').html(html);

            }
        })

        $(".back").click(function () {
            var u = navigator.userAgent;
            var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
            var isiOS = u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
            if(isAndroid){
                window.PkAndroidJS.finish();
            }
            if(isiOS){
                window.location.href="ios://style==3";
            }
        })

    </script>


</html>